<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>金陵贸易有限公司</title>
<link type="text/css" rel="stylesheet" href="style/style.css" />
    <script type="text/javascript" src="js/jquery-3.1.0.js"></script>
    <script type="text/javascript" src="js/common.js"></script>
</head>
<?php
header("content-type:text/html;charset=utf-8");
include "./admin/Mysql/MySqlClass.php";
$mySQL                          = new Ycf\Lession\MySqlClass\MySqlClass('jinling_company', 'root', '123456');
$link                           = $mySQL->select("link");
$companyInformation             = $mySQL->select("company_information");
$notice                         = $mySQL->select("notice");
$noticeDetailSelect             = array('id' => "$_GET[noticeId]");
$noticeDetail                   = $mySQL->select("notice", $noticeDetailSelect);
$industryIformation             = $mySQL->select("industry_information");
$industryIformationDetailSelect = array('id' => "$_GET[infoId]");
$industryIformationDetail       = $mySQL->select("industry_information", $industryIformationDetailSelect);
?>
<body>
<div class="header">
	<h1 class="logo" title="金陵贸易有限公司"><a href="index.php"><img src="images/logo.gif" alt="金陵贸易有限公司" /></a></h1>
    <p class="top_r"><a href="#" class="btn_i">设为主页</a><a href="#" class="btn_f">收藏本站</a></p>
</div>
<div class="nav">
	<div class="nav_left"></div>
    <ul>
     	<li class="sel"><a href="index.php">首  页</a></li>
        <li><a href="aboutUs.php">公司简介</a></li>
        <li><a href="productList.php">产品展示</a></li>
        <li><a href="info.php">行业资讯</a></li>
        <li><a href="guestbook.php">客户留言</a></li>
        <li><a href="contactUs.php" class="nobg">联系我们</a></li>
     </ul>
    <div  id="Timer" class="time"></div>
    <div class="nav_right"></div>
</div>
<div class="banner">
	<a href="#"><img src="images/banner.jpg" align="banner" /></a>
</div>
<div class="content">
	<div class="lefter">
    	<div class="title">
        	<h2 class="cBlue fB">详细信息<b class="cGrey fn">News</b></h2>
        </div>
        <div class="article">
			<h3><?php if (!empty($noticeDetail)) {echo $noticeDetail['noticeTitle'];} else {echo $industryIformationDetail['industryIformationTitle'];}
?></h3>
			<h4>发布时间：<?php if (!empty($noticeDetail)) {echo $noticeDetail['noticeDate'];} else {echo $industryIformationDetail['industryIformationDate'];}
?></h4>
            <?php if (!empty($noticeDetail)) {echo $noticeDetail['noticeContent'];} else {echo $industryIformationDetail['industryIformationContent'];}
?>
        </div>
    </div>
	<div class="righter">
    	<div class="rightBox">
        	<a href="#" class="btn_s">我要留言</a>
        </div>
        <div class="blank10"></div>
    	<div class="rightBox">
        	<h3>最新公告<b class="cGrey fn">News</b></h3>
            <ul class="list_r">
                <?php foreach ($notice as $row) {;?>
                    <li><a href="article.php?noticeId=<?php echo $row['id']; ?>"><?php echo $row['noticeTitle']; ?></a></li>
                <?php }
;?>
            </ul>
        </div>
        <div class="blank10"></div>
        <div class="rightBox">
        	<h3>友情链接<b class="cGrey fn">Links</b></h3>
            <ul class="list_r">
                <?php foreach ($link as $row) {;?>
                    <li><a href="<?php echo $row['linkUrl']; ?>"><?php echo $row['linkCompany'] . " "; ?></a></li>
                <?php }
;?>
            </ul>
        </div>
    </div>
    <div class="hackbox"></div>
</div>
<div class="footer">
    <?php include "sqlOption/footer.php"?>
</div>
</body>
</html>
